//引入请求库
import http from "@/utils/http2.js"

/**
 * 根据父id查询字典
 * @param {*} pid 
 * @returns 
 */
export function queryDictChild(pid) {
  return http.get("/api/dict/child", { pid });
}
//保存字典
export function save(data) {
  return http.post("/api/dict", data);
}
//修改字典
export function updateDict(data) {
  return http.post("/api/dict", data);
}
export function deleteDict(id) {
  return http.delete("/api/dict?id="+id, {  } );
}